<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-06 21:30:51
 * @Last Modified time: 2023-02-10 11:03:59
 */
namespace app\common\factory\store\goods\source;

/**
 * 商品来源抽象类
 * Class Base
 * @package app\common\factory\store\goods\source
 */
abstract class Base extends \app\common\factory\BaseFactory
{
    /**
     * 更新商品库存销量（订单付款后）
     * @param $goodsList
     * @return mixed
     */
    abstract function updateStockSales($goodsList);

    /**
     * 回退商品库存
     * @param $goodsList
     * @param $isPayOrder
     * @return mixed
     */
    abstract function backGoodsStock($goodsList,$orderId, $isPayOrder);

}